package org.lzy.aibg.pojo;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class User {
    private String name;
    private int age;
    private List<String> friends;
    private Set<Double> data;
    private Map<String, String> family;
    public void setFriends(List<String> friends) {
        this.friends = friends;
    }
    public void setData(Set<Double> data) {
        this.data = data;
    }
    public void setFamily(Map<String, String> family) {
        this.family = family;
    }
    private Location location;
    public void setLocation(Location location) {
        this.location = location;
    }
    public void setName(String name) {
        System.out.println("name 赋值");
        this.name = name;
    }
    public void setAge(int age) {
        System.out.println("age 赋值");
        this.age = age;
    }
    public  void sayHello() {
        System.out.println("hello everyone!");
    }
    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", friends=" + friends +
                ", data=" + data +
                ", family=" + family +
                ", location=" + location +
                '}';
    }
}